//
// Created by 15760 on 2022/11/6.
//

#ifndef CPP_PROJECT_GAME_EXCEPTION_H
#define CPP_PROJECT_GAME_EXCEPTION_H

#include <string>
#include <exception>
class GameException : public std::exception{  // 异常处理类
private:
    std::string info;
public:
    GameException(const std::string& s) noexcept: info(s) {}
    const char* what() noexcept {return info.c_str();}
    ~GameException() noexcept {}
};



#endif //CPP_PROJECT_GAME_EXCEPTION_H
